package com.tz.service.impl;

import com.tz.dao.IGroupDao;
import com.tz.entity.Group;
import com.tz.service.IGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2016/8/5.
 */
@Service
public class GroupServiceImpl implements IGroupService{

    @Autowired
    private IGroupDao groupDao;

    @Override
    @Transactional
    public List<Group> findAllGroup() {
        return groupDao.findAllGroup();
    }
}
